<#include "/common/defaultEngine.html"/>
<@pageTheme mark="${config.optimize()?string('true', 'false')}">
<@header title="修改ERP人事还款流程" bodyClass="white-bg" />
<div class="wrapper wrapper-content ibox-content">
    <@form.form id="form-payback-edit"  class="form-horizontal">
    <input name="id" value="${bpmErpPersonPayback.id}" type="hidden">
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "流水号" />：                               <i class="fa fa-question-circle-o" title="流水号"></i>                                
       </label>
        <div class="col-sm-8"><input name="serialNumber" value="${bpmErpPersonPayback.serialNumber?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "申请人id" />：                               <i class="fa fa-question-circle-o" title="申请人id"></i>                                
       </label>
        <div class="col-sm-8"><input name="applyUserid" value="${bpmErpPersonPayback.applyUserid?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "申请人名称" />：                               <i class="fa fa-question-circle-o" title="申请人名称"></i>                                
       </label>
        <div class="col-sm-8"><input name="applyUsername" value="${bpmErpPersonPayback.applyUsername?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "创建人" />：                               <i class="fa fa-question-circle-o" title="创建人"></i>                                
       </label>
        <div class="col-sm-8"><input name="createUserid" value="${bpmErpPersonPayback.createUserid?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "修改人" />：                               <i class="fa fa-question-circle-o" title="修改人"></i>                                
       </label>
        <div class="col-sm-8"><input name="updateUserid" value="${bpmErpPersonPayback.updateUserid?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "是否删除" />：                               <i class="fa fa-question-circle-o" title="是否删除 （1删除，0不删除）默认为0"></i>                                
       </label>
        <div class="col-sm-8"><input name="deleteFlag" value="${bpmErpPersonPayback.deleteFlag?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "受益人id" />：                               <i class="fa fa-question-circle-o" title="受益人id"></i>                                
       </label>
        <div class="col-sm-8"><input name="applyBeneficiaryUserid" value="${bpmErpPersonPayback.applyBeneficiaryUserid?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "受益人名称" />：                               <i class="fa fa-question-circle-o" title="受益人名称"></i>                                
       </label>
        <div class="col-sm-8"><input name="applyBeneficiaryUsername" value="${bpmErpPersonPayback.applyBeneficiaryUsername?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "余额" />：                               <i class="fa fa-question-circle-o" title="金融银行余额"></i>                                
       </label>
        <div class="col-sm-8"><input name="applyFinancialBankBalance" value="${bpmErpPersonPayback.applyFinancialBankBalance?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "输入金额" />：                               <i class="fa fa-question-circle-o" title="输入金额"></i>                                
       </label>
        <div class="col-sm-8"><input name="applyEnterAmount" value="${bpmErpPersonPayback.applyEnterAmount?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "选择还款方式"/>：</label>
        <div class="col-sm-8">          
             <@form.select name="applyPaybackMethod" dictType="sys_erp_paybackmethod" value="${bpmErpPersonPayback.applyPaybackMethod?default('')}"   required="true"  multiple="" />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "余额" />：                               <i class="fa fa-question-circle-o" title="选择银行余额关联选项-还款方式=Payable Bank/Reimbursement Bank，"></i>                                
       </label>
        <div class="col-sm-8"><input name="applyBankBalance" value="${bpmErpPersonPayback.applyBankBalance?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "付款方式"/>：</label>
        <div class="col-sm-8">          
             <@form.select name="applyPaymentMethod" dictType="sys_crm_coll_paymethod" value="${bpmErpPersonPayback.applyPaymentMethod?default('')}"   required="true"  multiple="" />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "交易日期"/>：</label>
        <div class="col-sm-8">
            <div class="input-group date">
                <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                <input class="form-control time-input" name="applyTransactionDate"  data-type="date"   value="${(bpmErpPersonPayback.applyTransactionDate?string('yyyy-MM-dd'))!}" data-format="yyyy-MM-dd" type="text"  required/>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "付款人" />：                               <i class="fa fa-question-circle-o" title="付款人"></i>                                
       </label>
        <div class="col-sm-8"><input name="applyPayerName" value="${bpmErpPersonPayback.applyPayerName?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "附件" />：                               <i class="fa fa-question-circle-o" title="附件"></i>                                
       </label>
        <div class="col-sm-8"><input name="applyProof" value="${bpmErpPersonPayback.applyProof?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "申请备注"/>：</label>
        <div class="col-sm-8">
            <textarea name="applyMemo" class="form-control" required>${bpmErpPersonPayback.applyMemo?default("")}</textarea>
        </div>
    </div>
               
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "审核"/>：</label>
        <div class="col-sm-8">
           <@form.radio name="approvalReview" dictType="sys_crm_isOrNo" value="${bpmErpPersonPayback.approvalReview?default('')}" />
        </div>

    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "审核备注"/>：</label>
        <div class="col-sm-8">
            <textarea name="approvalMemo" class="form-control" required>${bpmErpPersonPayback.approvalMemo?default("")}</textarea>
        </div>
    </div>
               
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "收到金额" />：                               <i class="fa fa-question-circle-o" title="收到金额"></i>                                
       </label>
        <div class="col-sm-8"><input name="approvalReceivedAmount" value="${bpmErpPersonPayback.approvalReceivedAmount?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "附件" />：                               <i class="fa fa-question-circle-o" title="附件"></i>                                
       </label>
        <div class="col-sm-8"><input name="approvalProof" value="${bpmErpPersonPayback.approvalProof?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "收据编号" />：                               <i class="fa fa-question-circle-o" title="收据编号"></i>                                
       </label>
        <div class="col-sm-8"><input name="approvalReceiptno" value="${bpmErpPersonPayback.approvalReceiptno?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "财务经理审批"/>：</label>
        <div class="col-sm-8">
           <@form.radio name="managerApproval" dictType="sys_crm_isOrNo" value="${bpmErpPersonPayback.managerApproval?default('')}" />
        </div>

    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "财务经理备注"/>：</label>
        <div class="col-sm-8">
            <textarea name="managerApprovalRemark" class="form-control" required>${bpmErpPersonPayback.managerApprovalRemark?default("")}</textarea>
        </div>
    </div>
               
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "财务经理通过审核时间"/>：</label>
        <div class="col-sm-8">
            <div class="input-group date">
                <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                <input class="form-control time-input" name="managerApprovalCrossTime"  data-type="date"   value="${(bpmErpPersonPayback.managerApprovalCrossTime?string('yyyy-MM-dd'))!}" data-format="yyyy-MM-dd" type="text"  required/>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "流程状态  默认为0申请人提交为1审批提交为2财务经理提交为3"/>：</label>
        <div class="col-sm-8">
            <div class="radio-box">
                <input type="radio" name="processStatus" value="" required/><span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
            </div>
        </div>
    </div>
 </@form.form>
<@footer>
<script type="text/javascript">
    var prefix = baseURL + "erp/payback";
    $("#form-payback-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if (opt.validate.form()) {
            opt.operate.save(prefix + "/edit", $('#form-payback-edit').serialize());
        }
    }
</script>
</@footer>
</@pageTheme>
